<template>
  <!-- 侧边栏 -->
  <SidebarWidgets />
  <div
    class="sticky top-[1px] text-sm/[30px] w-full bg-transparent border-none shadow-none bg-white border border-gray-200 rounded-2xl dark:bg-gray-800 dark:border-gray-700"
  >
    <Card title="文章目录" prefixIcon="mulu">
      <MdCatalog :editorId="editorId" :scrollElement="scrollElement" />
    </Card>
  </div>
</template>
<script setup lang="ts">
import { MdCatalog } from 'md-editor-v3'
defineProps<{
  editorId: string
  scrollElement: HTMLElement
}>()
</script>
